
//package component.scheduler
//
//import chisel3._
//import chisel3.util._
//
//class CalendarItem(grpNum:Int) extends Bundle {
//  val vld = Bool()
//  val gid = UInt(log2Up(grpNum).W)
//  val shr = Bool()
//
//  override def cloneType: CalendarItem.this.type = new CalendarItem(grpNum).asInstanceOf[this.type]
//}
//
//class CalendarIO extends Bundle {
//  val maxSlot = Input(UInt())
//  val xoff = Input(Bool())
//}
//
//class Calendar(depth:Int) extends Module{
//  val io = IO(new CalendarIO)
//
//  val tbls = Seq(Array[CalendarItem](depth), Array[CalendarItem](depth))
//  val ptr = RegInit(0.U(log2Up(depth).W))
//  val page = RegInit(0.U(1.W))
//
//  ptr :=  Mux( io.xoff, ptr,
//          Mux(ptr===(io.maxSlot-1.U), 0.U, ptr+1.U))
//}
